<?php

namespace hiduoke\services\formBuilder\traits;

use hiduoke\services\formBuilder\System\DkDouyinAppOpen;
use hiduoke\services\formBuilder\System\DkWorkWechatOpen;
use hiduoke\services\formBuilder\System\DkOpenButton;

trait DkShow
{

    /**
     * 企业微信开放平台扫码获取永久授权码
     * @param $field
     * @param $title
     * @param $value
     * @return DkWorkWechatOpen
     */
    public static function dkWorkWechatOpen($field, $title, $value = '')
    {
        return new DkWorkWechatOpen($field, $title, $value);
    }


    /**
     * 抖音小程序服务商授权
     * @param $field
     * @param $title
     * @param $value
     * @return DkDouyinAppOpen
     */
    public static function dkDouyinAppOpen($field, $title, $value = '')
    {
        return new DkDouyinAppOpen($field, $title, $value);
    }

    /**
     * 开放平台授权按钮
     * @param $field
     * @param $title
     * @param $value
     * @return DkOpenButton
     */
    public static function dkOpenButton($field, $title, $value = '')
    {
        return new DkOpenButton($field, $title, $value);
    }
}
